+2000-12-06 Alexander Larsson <alexl@redhat.com>
+
+ * gdk/linux-fb/gdkevents-fb.c:
+ Update to match latest gmain/gsource changes.
+
+ * gdk/linux-fb/gdkinput-ps2.c:
+ Bogus gdk_keymap_get_entries_for_keycode implementation so that
+ it links. Will be implemented later.
+
2000-12-03 Havoc Pennington <hp@pobox.com>
* gdk/Makefile.am: add gdkkeys.[hc]
+2000-12-06 Alexander Larsson <alexl@redhat.com>
+
+ * gdk/linux-fb/gdkevents-fb.c:
+ Update to match latest gmain/gsource changes.
+
+ * gdk/linux-fb/gdkinput-ps2.c:
+ Bogus gdk_keymap_get_entries_for_keycode implementation so that
+ it links. Will be implemented later.
+
2000-12-03 Havoc Pennington <hp@pobox.com>
* gdk/Makefile.am: add gdkkeys.[hc]
+2000-12-06 Alexander Larsson <alexl@redhat.com>
+
+ * gdk/linux-fb/gdkevents-fb.c:
+ Update to match latest gmain/gsource changes.
+
+ * gdk/linux-fb/gdkinput-ps2.c:
+ Bogus gdk_keymap_get_entries_for_keycode implementation so that
+ it links. Will be implemented later.
+
2000-12-03 Havoc Pennington <hp@pobox.com>
* gdk/Makefile.am: add gdkkeys.[hc]
+2000-12-06 Alexander Larsson <alexl@redhat.com>
+
+ * gdk/linux-fb/gdkevents-fb.c:
+ Update to match latest gmain/gsource changes.
+
+ * gdk/linux-fb/gdkinput-ps2.c:
+ Bogus gdk_keymap_get_entries_for_keycode implementation so that
+ it links. Will be implemented later.
+
2000-12-03 Havoc Pennington <hp@pobox.com>
* gdk/Makefile.am: add gdkkeys.[hc]
+2000-12-06 Alexander Larsson <alexl@redhat.com>
+
+ * gdk/linux-fb/gdkevents-fb.c:
+ Update to match latest gmain/gsource changes.
+
+ * gdk/linux-fb/gdkinput-ps2.c:
+ Bogus gdk_keymap_get_entries_for_keycode implementation so that
+ it links. Will be implemented later.
+
2000-12-03 Havoc Pennington <hp@pobox.com>
* gdk/Makefile.am: add gdkkeys.[hc]
+2000-12-06 Alexander Larsson <alexl@redhat.com>
+
+ * gdk/linux-fb/gdkevents-fb.c:
+ Update to match latest gmain/gsource changes.
+
+ * gdk/linux-fb/gdkinput-ps2.c:
+ Bogus gdk_keymap_get_entries_for_keycode implementation so that
+ it links. Will be implemented later.
+
2000-12-03 Havoc Pennington <hp@pobox.com>
* gdk/Makefile.am: add gdkkeys.[hc]
+2000-12-06 Alexander Larsson <alexl@redhat.com>
+
+ * gdk/linux-fb/gdkevents-fb.c:
+ Update to match latest gmain/gsource changes.
+
+ * gdk/linux-fb/gdkinput-ps2.c:
+ Bogus gdk_keymap_get_entries_for_keycode implementation so that
+ it links. Will be implemented later.
+
2000-12-03 Havoc Pennington <hp@pobox.com>
* gdk/Makefile.am: add gdkkeys.[hc]
* Functions for maintaining the event queue *
*********************************************/
-static gboolean fb_events_prepare (gpointer source_data,
- GTimeVal *current_time,
- gint *timeout,
- gpointer user_data);
-static gboolean fb_events_check (gpointer source_data,
- GTimeVal *current_time,
- gpointer user_data);
-static gboolean fb_events_dispatch (gpointer source_data,
- GTimeVal *dispatch_time,
- gpointer user_data);
+static gboolean fb_events_prepare (GSource *source,
+ gint *timeout);
+static gboolean fb_events_check (GSource *source);
+static gboolean fb_events_dispatch (GSource *source,
+ GSourceFunc callback,
+ gpointer user_data);
+
+static GSourceFuncs fb_events_funcs = {
+ fb_events_prepare,
+ fb_events_check,
+ fb_events_dispatch,
+ NULL
+};
guint32
gdk_fb_get_time(void)
void
gdk_events_init (void)
{
- static GSourceFuncs fb_events_funcs = {
- fb_events_prepare,
- fb_events_check,
- fb_events_dispatch,
- NULL
- };
-
- g_source_add (GDK_PRIORITY_EVENTS, TRUE, &fb_events_funcs, NULL, NULL, NULL);
+ GSource *source;
+
+ source = g_source_new (&fb_events_funcs, sizeof (GSource));
+ g_source_set_priority (source, GDK_PRIORITY_EVENTS);
+
+ g_source_set_can_recurse (source, TRUE);
+ g_source_attach (source, NULL);
}
/*
}
static gboolean
-fb_events_prepare (gpointer source_data,
- GTimeVal *current_time,
- gint *timeout,
- gpointer user_data)
+fb_events_prepare (GSource *source,
+ gint *timeout)
{
*timeout = -1;
- return fb_events_check (source_data, current_time, user_data);
+ return fb_events_check (source);
}
static gboolean
-fb_events_check (gpointer source_data,
- GTimeVal *current_time,
- gpointer user_data)
+fb_events_check (GSource *source)
{
gboolean retval;
}
static gboolean
-fb_events_dispatch (gpointer source_data,
- GTimeVal *dispatch_time,
- gpointer user_data)
+fb_events_dispatch (GSource *source,
+ GSourceFunc callback,
+ gpointer user_data)
{
GdkEvent *event;
return gdk_parent_root;
}
+/* Bogus implementation */
+gboolean
+gdk_keymap_get_entries_for_keycode (GdkKeymap *keymap,
+ guint hardware_keycode,
+ GdkKeymapKey **keys,
+ guint **keyvals,
+ gint *n_entries)
+{
+ return FALSE;
+}
+
static const guint trans_table[256][3] = {
/* 0x00 */
{0, 0, 0},